//
//  Event.h
//  cliqset
//
//  Created by David Hinson on 2/25/09.
//  Copyright 2009 Sumner Systems Management, Inc.. All rights reserved.
//

#import <Foundation/Foundation.h>
#include "Profile.h"

// Source Service
@interface SourceService : NSObject
{
@private
	NSMutableString * _consumerKey;
	NSMutableString * _name;
	NSMutableString * _logoURL;
	NSMutableData   * _logoBlob;
	NSMutableString * _iconURL;
	NSMutableData   * _iconBlob;
	NSMutableString * _websiteURL;
}

@property (retain, nonatomic) NSMutableString * consumerKey;
@property (retain, nonatomic) NSMutableString * name;
@property (retain, nonatomic) NSMutableString * logoURL;
@property (retain, nonatomic) NSMutableData   * logoBlob;
@property (retain, nonatomic) NSMutableString * iconURL;
@property (retain, nonatomic) NSMutableData   * iconBlob;
@property (retain, nonatomic) NSMutableString * websiteURL;

@end

@interface Resource : NSObject
{
	NSMutableString *_name;
	NSMutableString *_value;
	NSMutableData   *_blob;
}

@property (retain, nonatomic) NSMutableString *name;
@property (retain, nonatomic) NSMutableString *value;
@property (retain, nonatomic) NSMutableData *blob;

@end


// Events
@interface Event : NSObject {
@private

	int               _mode;
	NSMutableString * _eventIdentifier;
	NSMutableString * _createDate;
	NSMutableString * _eventType;
	NSMutableString * _title;
	NSMutableString * _body;
	NSMutableString * _url;	
	SourceService   * _sourceService;
	NSMutableString * _userIdentifier;
	BasicProfile    * _sourceUser;
	
	NSMutableArray  * _resources;
}

@property int mode;
@property (retain, nonatomic) NSMutableString * eventIdentifier;
@property (retain, nonatomic) NSMutableString * createDate;
@property (retain, nonatomic) NSMutableString * eventType;
@property (retain, nonatomic) NSMutableString * title;
@property (retain, nonatomic) NSMutableString * body;
@property (retain, nonatomic) NSMutableString * url;
@property (retain, nonatomic) NSMutableString * userIdentifier;
@property (retain, nonatomic) SourceService * sourceService;
@property (retain, nonatomic) BasicProfile * sourceUser;
@property (retain, nonatomic) NSMutableArray * resources;

@end
